<div class="sc_body">
    <div class="sc_title sc_body_title">
        <h5>{$nodeInfo.title}</h5>
        <div class="sc_title_btn">
            <button class="layui-btn layui-btn-sm" data-open="{:U('insert')}?spm={$spm}" data-title="新增"><i class="layui-icon">&#xe654;</i> 新增</button>
        </div>
    </div>
    <div class="fadeInUp animated">
        <form id="form-list" class="layui-form">
            <table class="layui-table" lay-even lay-skin="nob">
                <colgroup>
                    <col>
                    <col>
                    <col>
                    <col>
                    <col width="200">
                </colgroup>
                <thead>
                    <tr>
                        <th>名称</th>
                        <th>联系电话</th>
                        <th>电子邮箱</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    {volist name="list" id="data"}
                    <tr>
                        <td class="layui-elip">{$data.username}</td>
                        <td>{$data['phone']?$data['phone']:'<span style="color:#ccc">尚未设置联系电话</span>'}</td>
                        <td>{$data['email']?$data['email']:'<span style="color:#ccc">尚未设置联系邮箱</span>'}</td>
                        <td class="sc_td_status">{$data['is_status']?'<span style="color:#090">使用中</span>':'已禁用'}</th>
                        <td>
                            <a data-open="{:U('update')}?id={$data.id}&spm={$spm}" data-title="编辑">编辑</a>
                            <span class="sc_explode">|</span>
                            <a data-status="{:U('status')}" data-id="{$data.id}" data-value="{$data.is_status}">{$data['is_status']?'禁用':'启用'}</a>
                            <span class="sc_explode">|</span>
                            <a data-confirm="{:U('delete')}?id={$data.id}&spm={$spm}">删除</a>
                        </td>
                    </tr>
                    {/volist}
                </tbody>
            </table>
        </form>
    </div>
</div>
